Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <script src= "../../ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.min.js"></script> </head> <body> <div data-ng-app="" data-ng-init="quantity=1;price=5"> <h2>Cost Calculator</h2> Quantity: <input type="number" ng-model="quantity"> Price: <input type="number" ng-model="price"> <p><b>Total in dollar:</b> {{quantity * price}}</p> </div> </body> <!-- Mirrored from www.w3schools.com/angular/tryit.asp?filename=try_ng_binding by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:30:40 GMT --> </html>
Result:
Try it Yourself - © w3schools.com